Enabling line-wrapping of the unexpanded body is not enough to enforce
a single line when the text has embedded newlines, so replace these with
spaces (this is similar to setting ClutterText:single-line-mode, however
that would use a paragraph separator glyph instead).
setBody: function(text) {
this._bodyText = text;
- this.bodyLabel.setMarkup(text, this._useBodyMarkup);
+ this.bodyLabel.setMarkup(text.replace(/\n/g, ' '), this._useBodyMarkup);
},
setUseBodyMarkup: function(enable) {